package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_GCM_SHOWSTRIUCT"
 *     
*/
public class CcpGcmShowstriuct implements Serializable {

    /** identifier field */
    private String showGuid;

    /** persistent field */
    private String typeCode;

    /** persistent field */
    private String showpara;

    /** nullable persistent field */
    private String showparavalue;

    /** persistent field */
    private String showOrder;

    /** persistent field */
    private String msgcatGuid;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpGcmShowstriuct(String showGuid, String typeCode, String showpara, String showparavalue, String showOrder, String msgcatGuid, String reserved1, String reserved2, String reserved3) {
        this.showGuid = showGuid;
        this.typeCode = typeCode;
        this.showpara = showpara;
        this.showparavalue = showparavalue;
        this.showOrder = showOrder;
        this.msgcatGuid = msgcatGuid;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpGcmShowstriuct() {
    }

    /** minimal constructor */
    public CcpGcmShowstriuct(String showGuid, String typeCode, String showpara, String showOrder, String msgcatGuid) {
        this.showGuid = showGuid;
        this.typeCode = typeCode;
        this.showpara = showpara;
        this.showOrder = showOrder;
        this.msgcatGuid = msgcatGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SHOW_GUID"
     *         
     */
    public String getShowGuid() {
        return this.showGuid;
    }

    public void setShowGuid(String showGuid) {
        this.showGuid = showGuid;
    }

    /** 
     *            @hibernate.property
     *             column="TYPE_CODE"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getTypeCode() {
        return this.typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    /** 
     *            @hibernate.property
     *             column="SHOWPARA"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getShowpara() {
        return this.showpara;
    }

    public void setShowpara(String showpara) {
        this.showpara = showpara;
    }

    /** 
     *            @hibernate.property
     *             column="SHOWPARAVALUE"
     *             length="50"
     *         
     */
    public String getShowparavalue() {
        return this.showparavalue;
    }

    public void setShowparavalue(String showparavalue) {
        this.showparavalue = showparavalue;
    }

    /** 
     *            @hibernate.property
     *             column="SHOW_ORDER"
     *             length="10"
     *             not-null="true"
     *         
     */
    public String getShowOrder() {
        return this.showOrder;
    }

    public void setShowOrder(String showOrder) {
        this.showOrder = showOrder;
    }

    /** 
     *            @hibernate.property
     *             column="MSGCAT_GUID"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getMsgcatGuid() {
        return this.msgcatGuid;
    }

    public void setMsgcatGuid(String msgcatGuid) {
        this.msgcatGuid = msgcatGuid;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="100"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("showGuid", getShowGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpGcmShowstriuct) ) return false;
        CcpGcmShowstriuct castOther = (CcpGcmShowstriuct) other;
        return new EqualsBuilder()
            .append(this.getShowGuid(), castOther.getShowGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getShowGuid())
            .toHashCode();
    }

}
